$(function() {
	$('#vue_vm_list div').hide();
});

var behalfWater = {
	behalfWaterId: '',
	elderId: '',
	year: '',
	month: '',
	rent: '',
	payWay: '',
	subjectRoomId: getLoginedUser().subjectRoomId,
	createTime: '',
	updateTime: '',
	createId: getLoginedUser()? getLoginedUser().staffId: '',
	updateId: getLoginedUser()? getLoginedUser().staffId: '',
};

var view = {
	data: behalfWater
};

var vue_vm = new Vue({
	el: '#vue_vm',
	data: view
});

function showInfo() {
	if($('#vue_vm_list').length==0) {return;}
	$('#vue_vm_list div').hide();

	findAll_basic(path+'/behalfWater/findAll', function(response) {
		$('#vue_vm_list').html(gl_vue_vm_list_html);
		
		new Vue({
			el: '#vue_vm_list',
			data: {
				todos: response.data
			}
		});
		
		$('#vue_vm_list div').show();
	});
}

function deleteBatch() {
	deleteBatch_basic(path+'/behalfWater/deleteBatch');
}
